<?php
class IndexController extends Controller{
	private $_obj        = null;
	private $_urlPrefix = 'index.php?p=admin&c=';
	
	public function __construct() {
		parent::__construct();
		$this -> checkLogin();
	}
	
	public function checkLogin() {
		if(!isset($_SESSION['uid']) && empty($_SESSION['uid'])) {
			$this -> jump($this -> _urlPrefix . 'login&a=index', '用户未登陆,请重新登陆');
		}
	}
	
	public function indexAction() {
		include __VIEW__ . PLATFORM . DS . 'index.html';
	}
}
?>